package com.wits.qso.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wits.platform.service.BaseService;
import com.wits.qso.dao.CourseDao;
import com.wits.qso.entity.BtableH;
import com.wits.qso.entity.CList;
import com.wits.qso.entity.Course;

@Component
public class CourseService extends BaseService<Course,String>{
	
	private CourseDao courseDao;
	
	@Autowired
	public void setDeptDao(CourseDao courseDao) {
		this.baseDao=courseDao;
		this.courseDao = courseDao;
	}

	public List<BtableH> findEnableBtableH()
	{
		return courseDao.findEnableBtableH();
	}
	
	public Course findByTitle(String title) {
		return courseDao.findByTitle( title );
	}
	
	public int resetListId(String cLstId) {
		return courseDao.resetListId( cLstId );
	}
	
	public List<Course> findByLst(CList clst)  {
		return courseDao.findByLst( clst );
	}
	
	public List<Course> findUnKnowLst() {
		return courseDao.findUnKnowLst();
	}
}
